package com.mikepenz.app.activity.message;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.mikepenz.app.R;
import com.mikepenz.bean.MessageBean;
import com.quickdv.activity.BaseActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;

public class MessageDetail extends BaseActivity {

    @InjectView(R.id.title)
    TextView title;
    @InjectView(R.id.content)
    TextView content;

    @Override
    public int getLayoutID() {
        return R.layout.activity_message_detail;
    }

    @Override
    public void initView() {
        Intent intent = getIntent();
        MessageBean bean = (MessageBean) intent.getExtras().getSerializable("message");
        title.setText(bean.getMessageTitle());
        content.setText(bean.getMessageDetail());
    }

    @Override
    public void initActionbar() {

    }

    @Override
    public void initData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.inject(this);
    }
}
